package com.ruoyi.web.domain.warning;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 预警昆虫信息表
 * @author fwx
 * @since 2024-02-01 14:44:37
 */
@Data
@TableName("tt_warning_insect")
@ApiModel(value = "WarningInsect对象", description = "预警昆虫信息表")
public class WarningInsect implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("昆虫类型 1 一类害虫 2 二类害虫 3 其他")
    @TableField("insect_type")
    private Integer insectType;

    @ApiModelProperty("昆虫名称")
    @TableField("insect_name")
    private String insectName;

    @ApiModelProperty("昆虫编码")
    @TableField("insect_code")
    private String insectCode;

    @ApiModelProperty("今年是否出现 0 出现 1 未出现")
    @TableField("is_appear")
    private Integer isAppear;

    @ApiModelProperty("日高峰值")
    @TableField("peak_day")
    private Integer peakDay;

    @ApiModelProperty("月高峰值")
    @TableField("peak_month")
    private Integer peakMonth;

    @ApiModelProperty("是否启用 0 启用 1 停用")
    @TableField("is_enable")
    private String isEnable;

    @ApiModelProperty("创建时间")
    @TableField("crt_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime crtTime;


}
